package com.easybuy.web.controller;

import com.easybuy.bean.OrderProductVo;
import com.easybuy.service.IOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("order")
public class EasybuyOrderController {
    @Autowired
    IOrderService iOrderService;
    @RequestMapping("create")
    public String create(HttpServletRequest request,OrderProductVo orderProductVo){
        iOrderService.createOrder(request,orderProductVo);
        return "shopping-result";

    }
}
